package com.smedi.ismedi.inmail.api.feign;

import com.smedi.ismedi.inmail.api.dto.request.*;
import com.smedi.ismedi.web.starter.common.ResponseData;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * @author u
 */
@FeignClient(name = "ismedi-inmail")
@Api(value = "操作日志", tags = {"操作日志"})
@RequestMapping(value = "/api/v1/operation-log")
public interface RemoteOperationLogFeignApi {
    /**
     * 新建 操作日志
     *
     * @param operationLogCreateRequest 操作日志 新建 请求
     * @return ResponseData<AnnouncementResponse>
     */
    @ApiOperation(httpMethod = "POST", value = "新建 操作日志")
    @PostMapping(value = "/create")
    ResponseData<Long> create(@Validated @RequestBody OperationLogCreateRequest operationLogCreateRequest);
}
